package com.szq.pattern.service.logic;

import com.szq.pattern.po.vo.TreeNodeLink;

import java.util.List;
import java.util.Map;

/**
 * @description:
 * @author: szq
 * @date: 2021-09-08 08:15:09
 */
public interface LogicFilter {

    /**
     * 逻辑决策器
     * @param matterValue 决策值
     * @param treeNodeLinkList 决策节点
     * @return
     */
    Long filter(String matterValue, List<TreeNodeLink> treeNodeLinkList);

    /**
     * 获取决策值
     * @param treeId
     * @param userId
     * @param decisionMatter
     * @return
     */
    String matterValue(Long treeId, Long userId, Map<String, String> decisionMatter);

}
